<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //  let str='abc111ddabcgfhkl1'
        //  let a =str.split('1')
        //  console.log(a);
        //  let arr=a.join('')
        //  console.log(arr);
        //  let str1=str.replace(/1/g,'')
        //  console.log(str1);
         let content ='<img src="aaskgh"/><span>aaa</span><img src="asas"/>'
         let atr=content.replace(/<img/g,'<img style="color:red"')
         console.log(content);
         console.log(atr);

    </script>

</body>
</html>